package cn.qinyun.cloud.order.service.controller;

import cn.qinyun.cloud.common.api.Result;
import cn.qinyun.cloud.core.web.controller.BaseController;
import cn.qinyun.cloud.order.api.dto.OrderDto;
import cn.qinyun.cloud.order.service.service.OrderService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ZhangZhaoFa
 */
@RestController
@AllArgsConstructor
@RequestMapping("/order")
@Api(value = "订单API", tags = "API管理接口")
public class OrderController extends BaseController {
    @Autowired
    private OrderService orderService;
    @PostMapping("/save")
    @ApiOperation(value = "角色权限设置", notes = "角色权限设置")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "roleId", required = true, value = "角色ID", paramType = "form"),
            @ApiImplicitParam(name = "ids", required = true, value = "多个用,号隔开", paramType = "form")
    })
    public Result<Boolean> saveOrder(@RequestBody OrderDto orderDto){

    }

}
